package com.richest.api.controller.form;

import java.util.Date;

import javax.validation.constraints.NotBlank;

import org.hibernate.validator.constraints.Length;

import io.swagger.annotations.ApiModelProperty;

/**
 * 商户注册（附带注册管理员登录帐号）
 *
 * @author 杨博
 */

public class MerchantRegisterForm {

	@ApiModelProperty(value = "商户名称")
	@NotBlank(message = "商户名称不能为空")
	private String merchant_name;

	@ApiModelProperty(value = "商户简介")
	private String synopsis;

	@ApiModelProperty(value = "商户图片")
	@NotBlank(message = "商户图片不能为空，如果空白可以为0")
	private Long image_id;

	@ApiModelProperty(value = "商户电话号码")
	@NotBlank(message = "商户电话号码不能为空")
	@Length(max = 11, min = 11, message = "联系方式格式不正确")
	private String merchant_phone_number;

	@ApiModelProperty(value = "微信绑定")
	private String wechat_bind;

	@ApiModelProperty(value = "营业执照")
	@NotBlank(message = "营业执照不能为空")
	private Long license_image_id;

	@ApiModelProperty(value = "有效期开始时间")
	@NotBlank(message = "有效期开始时间不能为空")
	private Date validity_begin;

	@ApiModelProperty(value = "有效期结束时间")
	@NotBlank(message = "有效期结束时间不能为空")
	private Date validity_end;

	@ApiModelProperty(value = "法人手持证件照")
	@NotBlank(message = "法人手持证件照不能为空")
	private Long legal_person_image_id;

	@ApiModelProperty(value = "法人姓名")
	@NotBlank(message = "法人姓名不能为空")
	private String legal_person_name;

	@ApiModelProperty(value = "登录名称")
	@NotBlank(message = "登录名称不能为空")
	@Length(max = 64, min = 6, message = "登录名称格式不正确")
	private String log_name;

	@ApiModelProperty(value = "登录密码")
	@NotBlank(message = "登录密码不能为空")
	@Length(max = 64, min = 64, message = "登录密码格式不正确")
	private String password;

	@ApiModelProperty(value = "雇员姓名")
	@NotBlank(message = "雇员姓名不能为空")
	private String name;

	@ApiModelProperty(value = "雇员手机")
	@NotBlank(message = "雇员手机不能为空")
	private String phone_number;

	@ApiModelProperty(value = "雇员备注信息")
	private String remarks;

	public final String getMerchant_name() {
		return merchant_name;
	}

	public final void setMerchant_name(String merchant_name) {
		this.merchant_name = merchant_name;
	}

	public final String getSynopsis() {
		return synopsis;
	}

	public final void setSynopsis(String synopsis) {
		this.synopsis = synopsis;
	}

	public final Long getImage_id() {
		return image_id;
	}

	public final void setImage_id(Long image_id) {
		this.image_id = image_id;
	}

	public final String getMerchant_phone_number() {
		return merchant_phone_number;
	}

	public final void setMerchant_phone_number(String merchant_phone_number) {
		this.merchant_phone_number = merchant_phone_number;
	}

	public final String getWechat_bind() {
		return wechat_bind;
	}

	public final void setWechat_bind(String wechat_bind) {
		this.wechat_bind = wechat_bind;
	}

	public final Long getLicense_image_id() {
		return license_image_id;
	}

	public final void setLicense_image_id(Long license_image_id) {
		this.license_image_id = license_image_id;
	}

	public final Date getValidity_begin() {
		return validity_begin;
	}

	public final void setValidity_begin(Date validity_begin) {
		this.validity_begin = validity_begin;
	}

	public final Date getValidity_end() {
		return validity_end;
	}

	public final void setValidity_end(Date validity_end) {
		this.validity_end = validity_end;
	}

	public final Long getLegal_person_image_id() {
		return legal_person_image_id;
	}

	public final void setLegal_person_image_id(Long legal_person_image_id) {
		this.legal_person_image_id = legal_person_image_id;
	}

	public final String getLegal_person_name() {
		return legal_person_name;
	}

	public final void setLegal_person_name(String legal_person_name) {
		this.legal_person_name = legal_person_name;
	}

	public final String getLog_name() {
		return log_name;
	}

	public final void setLog_name(String log_name) {
		this.log_name = log_name;
	}

	public final String getPassword() {
		return password;
	}

	public final void setPassword(String password) {
		this.password = password;
	}

	public final String getName() {
		return name;
	}

	public final void setName(String name) {
		this.name = name;
	}

	public final String getPhone_number() {
		return phone_number;
	}

	public final void setPhone_number(String phone_number) {
		this.phone_number = phone_number;
	}

	public final String getRemarks() {
		return remarks;
	}

	public final void setRemarks(String remarks) {
		this.remarks = remarks;
	}

}
